package com.csxy.mxj.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.csxy.mxj.entity.EduSubject;
import com.csxy.mxj.entity.vo.OneSubject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


public interface EduSubjectService extends IService<EduSubject> {
    //获取所有分类，用来显示
    List<OneSubject> getAllOneTwoSubject();
    //读取Excel文件内容，并保存到数据库，EduSubjectService需要手动传入
    //保证Listener能够操作数据库
    void saveSubject(MultipartFile file,EduSubjectService eduSubjectService);
}